<?php
class retrieve_imagerotator_admin extends retrieve_base{

	private $module_display_options 	= array(
	);

	/**
	* function produces abstract structure of modules db structure
	*
    * used to generate the table structure required abstract function that passes an abstract
	* representation of the desired table structure to the proper database module which will
	* interpet the abstract and convert it into a valid SQL Create table structure.
	*
	* @return Array list of abstract table definitions for this module
	*/
	function create_table(){
		$tables = array();
		/**
		* Table structure for table 'guestbooks_list'
		-
		* the guest books_list table holds the list of guset books that are avaialble on the site
		*/
		$fields = array(
			array("irl_identifier"		,"unsigned integer"			,"NOT NULL"	,"auto_increment","key"),
			array("irl_client"			,"unsigned integer"			,"NOT NULL"	,"default '0'"),
			array("irl_number"			,"unsigned small integer"	,"NOT NULL"	,"default '0'", "key"),
			array("irl_direction"		,"unsigned small integer"	,"NOT NULL" ,"default '0'", "key"),
			array("irl_type"			,"unsigned small integer"	,"NOT NULL" ,"default '0'", "key"),
			array("irl_created"			,"datetime"					,"NOT NULL" ,"default ''"),
			array("irl_created_by"		,"unsigned integer"			,"NOT NULL" ,"default ''"),
			array("irl_label"			,"varchar(255)"				,"NOT NULL" ,"default '0'", "key"),
			array("irl_all_locations"	,"unsigned small integer"	,"NOT NULL" ,"default '1'"),
			array("irl_hspace"			,"unsigned small integer"	,"NOT NULL" ,"default ''"),
			array("irl_vspace"			,"unsigned small integer"	,"NOT NULL" ,"default ''"),
			array("irl_width"			,"unsigned integer"	,"NOT NULL" ,"default ''"),
			array("irl_height"			,"unsigned integer"	,"NOT NULL" ,"default ''"),
			array("irl_set_inheritance"	,"unsigned small integer"	,"NOT NULL" ,"default '1'"),
			array("irl_align"			,"unsigned small integer"	,"NOT NULL" ,"default '0'")
		);
		
		$primary ="irl_identifier";
		$tables[count($tables)] = array("imagerotate_list", $fields, $primary);
		
		
		$fields = array(
			array("irlf_identifier"	,"unsigned integer"			,"NOT NULL"	,"auto_increment","key"),
			array("irlf_client"		,"unsigned integer"			,"NOT NULL"	,"default '0'", "key"),
			array("irlf_list"		,"unsigned integer"			,"NOT NULL"	,"default '0'", "key"),
			array("irlf_rank"		,"unsigned small integer"	,"NOT NULL"	,"default '0'", "key"),
			array("irlf_file"		,"unsigned integer"			,"NOT NULL"	,"default '0'", "key")
		);
		$primary ="irlf_identifier";
		$tables[count($tables)] = array("imagerotate_filelist", $fields, $primary);
/*		
		$fields = array(
			array("irlm_identifier"	,"unsigned integer"			,"NOT NULL"	,"auto_increment","key"),
			array("irlm_client"		,"unsigned integer"			,"NOT NULL"	,"default '0'", "key"),
			array("irlm_list"		,"unsigned integer"			,"NOT NULL"	,"default '0'", "key"),
			array("irlm_menu"		,"unsigned integer"			,"NOT NULL"	,"default '0'", "key")
		);
		$primary ="irlm_identifier";
		$tables[count($tables)] = array("imagerotate_menus", $fields, $primary);
*/
		return $tables;
	}
}
?>